import { createApp } from 'vue'
import App from './App.vue'
import '@/style/reset.scss'
//引入全局组件--顶部、底部都是全局组件
import HospitalTop from '@/components/hospital_top/index.vue';
import HospitalBottom from '@/components/hospital_bottom/index.vue';
import Login from '@/components/login/index.vue';
import router from '@/router';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import pinia from '@/store'
const app = createApp(App);
import Visitor from './components/visitor/visitor.vue';
app.component('HospitalTop',HospitalTop);
app.component('HospitalBottom',HospitalBottom);
app.component('Login',Login);
//就诊人全局组件
app.component('Visitor',Visitor);
app.use(router);
app.use(ElementPlus,{
    locale:zhCn,
});
app.use(pinia);

//引入路由鉴权的文件
import './permisstion'
app.mount('#app')
